<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			// for循环
			for (i=1;i<9;i++){
				for (j=1; j<=i;j++){
					m = i*j;
					document.write(j + "*" + i + "=" +m + "&nbsp;");
				}
				document.write("<br>")
			}
			
			document.write("<br>")
			
			// while循环
			var i = 1;
			var sum = 0;
			while (i <= 100) {
				sum = sum +i;
				i++;
			}
			document.write("1+2+3……+100="+ sum)
			
			// do while 语句
			
			
		</script>
	</body>
</html>